package com.john.blockchain.demo.mock.task;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jiangguangtao 2018/4/14
 */
public class MineResult implements Serializable {
    private static final long serialVersionUID = 6629613539985588215L;
    /**
     * 是否有结果标识
     */
    private boolean hasResult = false;
    /**
     * 结果Hash
     */
    private String resultHash;
    /**
     * 计算Hash次数
     */
    private Long workTimes;
    /**
     * 计算Hash用时
     */
    private Long workDurations;
    /**
     * 开始时间
     */
    private Date beginTime;
    /**
     * 结束时间
     */
    private Date endTime;

    public boolean isHasResult() {
        return hasResult;
    }

    public void setHasResult(boolean hasResult) {
        this.hasResult = hasResult;
    }

    public String getResultHash() {
        return resultHash;
    }

    public void setResultHash(String resultHash) {
        this.resultHash = resultHash;
    }

    public Long getWorkTimes() {
        return workTimes;
    }

    public void setWorkTimes(Long workTimes) {
        this.workTimes = workTimes;
    }

    public Long getWorkDurations() {
        return workDurations;
    }

    public void setWorkDurations(Long workDurations) {
        this.workDurations = workDurations;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "MineResult{" +
                "hasResult=" + hasResult +
                ", resultHash='" + resultHash + '\'' +
                ", workTimes=" + workTimes +
                ", workDurations=" + workDurations +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                '}';
    }
}
